package cn.webrx;

import java.util.ArrayList;
import java.util.List;

public class List3 {
    public static void main(String[] args) {
        Student[] arr = new Student[3];

        //动态的数组，可改变的数组
        List<Student> list = new ArrayList<>();
        list.add(new Student(1,"李四"));
        list.add(new Student(2,"张三丰"));
        System.out.println(list.size());
        for(Student s : list){
            System.out.println(s);
        }


        List<String> list2 = new ArrayList<>();

        //List  ArrayList()

        list = null;
    }
}
